<div class="am-u-sm-12 widget" style="margin:10px ;">
	<form class="am-form-inline tpl-form-border-form" action="" method="get">
		<div class="am-u-sm-12">
			<div class="am-form-group am-u-sm-3">
				<label for="user-name" class="am-u-sm-4 am-form-label">车牌号:</label>
				<div class="am-u-sm-8 cl-p">
					<input type="hidden" class="CarId" name="car_id" value="{$Think.get.car_id}" />
					<input type="text" class="am-form-field tpl-form-no-bg  car_number" style="line-height: 21px;" value="{$item.number}" placeholder="点击选择车辆" readonly="">
				</div>
			</div>
			<div class="am-u-sm-6 cl-p">
				<div class="am-form-group am-u-sm-12 ">
					<div class="am-form-group am-u-sm-6 cl-p">
					<label for="user-email" class="am-u-sm-4 am-form-label am-text-truncate">开始时间:</label>
					<div class="am-u-sm-8 cl-p">
						<input type="text" name="start_date" class="am-form-field tpl-form-no-bg "  value="{$Think.get.start_date}" placeholder="开始时间" data-am-datepicker="" readonly="">
					</div>
				</div>
				<!--<div class="am-form-group am-u-sm-6 cl-p">
					<label for="user-email" class="am-u-sm-4 am-form-label am-text-truncate">结束时间:</label>
					<div class="am-u-sm-8 cl-p">
						<input type="text" name="end_date" class="am-form-field tpl-form-no-bg"  value="{$Think.get.end_date}" placeholder="结束时间" data-am-datepicker="" readonly="">
					</div>
				</div>-->

				</div>
			</div>
			<div class="am-u-sm-3 cl-p">
				<button type="submit" class="am-btn am-btn-sm am-btn-primary am-radius" style="margin-top: -2px;">查询</button>
				<a href="{:url('add')}" class="am-btn am-btn-sm am-btn-primary am-radius" style="margin-top: -2px;">添加记录</a>
			</div>
		</div>
	</form>
	<div style="padding: 10px;" class="am-u-sm-12">
		<div><button style="float: right;" type="button" class="am-btn am-btn-default am-radius am-btn-xs" style="margin-top: -2px;">导出文件</button></div>
		<table width="100%" class="am-table am-table-compact am-text-nowrap tpl-table-black ">
			<thead>
				<tr>

					<th>记录编号</th>
					<th>车牌号</th>
					<th>加油时间</th>
					<th>加油地点</th>
					<th>加油量</th>
					<th>加油金额</th>
					<th>汽油标号</th>
					{if $op == 'search'}
					{else/}
					<th>操作</th>
					{/if}
				</tr>
			</thead>
			<tbody>
				{foreach $list as $key => $item}
				<tr class="gradeX" data-id="{$item.refuel_record_id}">

					<td>{$item.refuel_record_id}</td>
					<td>
						<a href="{:url('car/detail',['car_id'=>$item['car_id'] ])}?refuel=1">{$item.number}</a>
					</td>
					<td>{$item.start_date}</td>
					<td>{$item.refuel_add}</td>
					<td>{$item.litre}</td>
					<td>{$item.price}</td>
					<td>{if $item.label == 89}
						89#
						{elseif $item.label == 93/}
						93#
						{elseif $item.label == 95/}
						95#
						{else/}
						98#
						{/if}
						
					</td>
					{if $op == 'search'}
					{else/}
					<td data-id="{$item.refuel_record_id}">
						<div class="tpl-table-black-operation">

							<a href="{:url('edit',['refuel_record_id'=>$item.refuel_record_id])}">
								<i class="am-icon-pencil"></i> 编辑
							</a>
							<a href="javascript:;" class="tpl-table-black-operation-del delete-list" data-method="delete">
								<i class="am-icon-pencil"></i> 删除
							</a>
						</div>
					</td>
					{/if}
				</tr>
				{/foreach}
				<!-- more data -->
			</tbody>
		</table>
		<div class="am-u-lg-12 am-cf">
			<div class="am-fr">
				{$pager}
			</div>
		</div>
	</div>

</div>